package com.systemic.service;

import com.systemic.pojo.Draft;
import com.systemic.vo.DraftInfoVo;
import com.systemic.vo.DraftVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @ClassName: DraftService
 * @Description: 草稿箱服务层接口
 * @Author:
 * @CreateTime: 2024-01-05 13:54
 * @Version:
 **/
public interface DraftService {

    /**
     * 暂存草稿
     * @param images
     * @param draft
     * @param subject
     * @return
     */
    int staging(MultipartFile[] images, Draft draft, Integer[] subject);

    /**
     * 获取用户的草稿箱列表
     * @param uid
     * @return
     */
    List<DraftVo> selectListByUid(Integer uid);

    /**
     * 获取草稿具体信息
     * @param id
     * @return
     */
    DraftInfoVo selectById(Integer id);

    /**
     * 删除草稿
     * @param draft
     * @return
     */
    int delete(Draft draft);

    /**
     * 更新草稿
     * @param images
     * @param draft
     * @param subject
     * @return
     */
    int update(MultipartFile[] images, Draft draft, Integer[] subject);

    /**
     * 草稿转动态
     * @param draft
     * @return
     */
    int push(Draft draft);
}
